<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <base th:href="@{/}">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/theme.css">
    <script src="jquery/jquery-2.1.1.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="script/docs.min.js"></script>
    <script src="script/back-to-top.js"></script>
    <script>
        var projects;
        function application(projectid){
            var psd=prompt("请输入钱包密码:");
            if(psd==null||psd=="")return;
            var data1={
                "projectId":parseInt(projectid),
                "userId":parseInt(document.getElementById("body_1").getAttribute("sessionid")),
                "password":parseInt(psd)
            };
            $.ajax({
                url:"http://localhost:81/project/fund/withdraw",
                data:JSON.stringify(data1),
                success(data){//result
                    if(data.result=="SUCCESSED"){
                        alert("资金提取成功！");
                        tab1("tab1_3");
                    }
                    else alert("提取失败！"+data.message);
                },
                contentType: 'application/json',
                type: "post"
            });
        }
        function agree(itemId,projectId){
            var psd=prompt("请输入钱包密码:");
            if(psd==null||psd=="")return;
            var data1={
                "projectId":parseInt(projectId),
                "itemId":parseInt(itemId),
                "userId":parseInt(document.getElementById("body_1").getAttribute("sessionid")),
                "password":parseInt(psd)
            };
            console.log(data1);
            $.ajax({
                url:"http://localhost:81/project/fund/agree/",
                data:JSON.stringify(data1),
                success(data){//result
                    if(data.result=="SUCCESSED"){
                        alert("操作成功！");
                    }
                    else alert("操作失败！"+data.message);
                },
                contentType: 'application/json',
                type: "post"
            });
            tab1("tab1_4");
        }

        function reject(id){
            var psd=prompt("请输入钱包密码:");
            if(psd==null||psd=="")return;
            var data1={
                "projectId":parseInt(projectId),
                "itemId":parseInt(itemId),
                "userId":parseInt(document.getElementById("body_1").getAttribute("sessionid")),
                "password":parseInt(psd)
            };
            $.ajax({
                url:"http://localhost:81/project/fund/refuse/",
                data:JSON.stringify(data1),
                success(data){//result
                    if(data.result=="SUCCESSED"){
                        alert("操作成功！");
                    }
                    else alert("操作失败！"+data.message);
                },
                contentType: 'application/json',
                type: "post"
            });
            tab1("tab1_4");
        }
        $('#myTab a').click(function (e) {
            e.preventDefault();
            $(this).tab('show');

        });
        function lode(){
            tab1("tab1_1");
        }

        // $('#myTab1 a').click(function (e) {
        //
        //     //e.preventDefault();
        //     console.log("hahah");
        //     $(this).tab('show');
        // });

        $("#launchCrowdBtn").click(function () {
            window.location.href = "http://localhost:81/project/agree/protocol/page";
        });

        // function tab1(id){
        //    // e.preventDefault();
        //     var xhttp=new XMLHttpRequest();
        //     xhttp.onreadystatechange=function () {
        //         if(this.readyState==4&&this.status==200){
        //             $("#myTab1 li").removeClass("active");
        //             event.target.className="active";
        //         }
        //     }
        //     xhttp.open("GET","/project/my/create/project");
        //     xhttp.send();
        //     console.log(this.attr('id'));
        // }

        function statusSwitch(status){
            var x="5";
            switch (status) {
                case 0:x= "即将开始";break;
                case 1:x="众筹中";break;
                case 2:x="众筹成功";break;
                case 3:x="众筹失败";break;
                default:x="状态错误";break;
            }
            console.log(x);
            return x;

        }
        function getTable(fillData,ty){
            var temp=" <tr>\n" +
                "                                                <td style=\"vertical-align:middle;\">\n" +
                "                                                    <div class=\"thumbnail\">\n" +
                "                                                        <div class=\"caption\">\n" +
                "                                                            <h3>\n" +
                "                                                               "+   fillData[0]       +"\n" +
                "                                                            </h3>\n" +
                "                                                            <p>\n" +
                "                                                                订单编号:2x002231111\n" +
                "                                                            </p>\n" +
                "                                                            <p>\n" +
                "                                                            <div style=\"float:left;\"><i\n" +
                "                                                                    class=\"glyphicon glyphicon-screenshot\"\n" +
                "                                                                    title=\"目标金额\"></i> 已完成 "+fillData[6]+"%\n" +
                "                                                            </div>\n" +
                "                                                            <div style=\"float:right;\"><i title=\"截至日期\"\n" +
                "                                                                                         class=\"glyphicon glyphicon-calendar\"></i>\n" +
                "                                                                剩余8天\n" +
                "                                                            </div>\n" +
                "                                                            </p>\n" +
                "                                                            <br>\n" +
                "                                                            <div class=\"progress\" style=\"margin-bottom: 4px;\">\n" +
                "                                                                <div class=\"progress-bar "+(fillData[6]==100?"progress-bar-success":"")+"\"\n" +
                "                                                                     role=\"progressbar\" aria-valuenow=\"40\"\n" +
                "                                                                     aria-valuemin=\"0\" aria-valuemax=\"100\"\n" +
                "                                                                     style=\"width: "+fillData[6]+"%\">\n" +
                "                                                                    <span>"+(fillData[6]==100?"众筹成功":"正在众筹")+"</span>\n" +
                "                                                                </div>\n" +
                "                                                            </div>\n" +
                "                                                        </div>\n" +
                "                                                    </div>\n" +
                "                                                </td>\n" ;
                 if(ty=='4')temp+=
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[1]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[2]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[3]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[4]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">\n" +
                     "                                                    <div class=\"btn-group-vertical\" role=\"group\"\n" +
                     "                                                         aria-label=\"Vertical button group\">\n" +
                     fillData[5]+
                     "                                                    </div>\n" +
                     "                                                </td>\n" +
                     "                                            </tr>";
                 else temp+= "                                                <td style=\"vertical-align:middle;\">"+fillData[1]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[2]+"<br>(运费：0.00 )</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[3]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">"+fillData[4]+"</td>\n" +
                     "                                                <td style=\"vertical-align:middle;\">\n" +
                     "                                                    <div class=\"btn-group-vertical\" role=\"group\"\n" +
                     "                                                         aria-label=\"Vertical button group\">\n" +
                     fillData[5]+
                     "                                                    </div>\n" +
                     "                                                </td>\n" +
                     "                                            </tr>"
            return temp;
        }
        function tab1(tragger){
            var tabI=document.getElementById(tragger);
            var urL;

            switch (tragger.charAt(tragger.length-1)) {
                case '1':urL="http://localhost:81/project/my/support";break;
                case '2':urL="/project/my/create/project";break;
                case '3':urL="/project/my/create/project";break;
                case '4':urL="http://localhost:81/project/fund/info/"+document.getElementById("body_1").getAttribute("sessionid");
            }
            console.log(urL);
            $.ajax(
                {   url : urL,
                    data:"",
                    type:"GET",
                    //async:false
                    datatype:"json",
                    error:function (){tab1(tragger)},
                    success:function(data){

                        console.log(tragger);
                        $("#myTab1 li").removeClass("active");
                        tabI.className="active";
                        console.log(data);
                        projects=data.data;
                        var head=document.getElementById("projectShow").rows[0];


                        switch (tragger.charAt(tragger.length-1)) {

                            case '1':
                                head.cells[0].innerHTML="项目信息";
                                head.cells[1].innerHTML="支持日期";
                                head.cells[2].innerHTML="支持金额";
                                head.cells[3].innerHTML="回报数量";
                                head.cells[4].innerHTML="交易状态";
                                head.cells[5].innerHTML="操作";
                                break;
                            case '2':
                                head.cells[0].innerHTML="项目信息";
                                head.cells[1].innerHTML="关注日期";
                                head.cells[2].innerHTML="筹资金额";
                                head.cells[3].innerHTML="回报数量";
                                head.cells[4].innerHTML="交易状态";
                                head.cells[5].innerHTML="操作";
                                break;
                            case '3':
                                head.cells[0].innerHTML="项目信息";
                                head.cells[1].innerHTML="发起日期";
                                head.cells[2].innerHTML="筹资金额";
                                head.cells[3].innerHTML="回报数量";
                                head.cells[4].innerHTML="交易状态";
                                head.cells[5].innerHTML="操作";
                                break;
                            case '4':
                                //head.cells[5].innerHTML="";

                                head.cells[0].innerHTML="项目信息";
                                head.cells[1].innerHTML="申请日期";
                                head.cells[2].innerHTML="申请资金数";
                                head.cells[3].innerHTML="申请人";
                                head.cells[4].innerHTML="申请理由";
                                head.cells[5].innerHTML="操作";
                               // head.cells[5].hidden();
                               // head.cells[1].hidden();
                                break;
                        }
                        var txt="";
                        for (const project of projects) {
                            var status=statusSwitch(project.status);
                            var fillData=["","","","","",""];
                            console.log(project);
                            switch (tragger.charAt(tragger.length-1)) {
                                case '1':
                                    fillData[0]=project.projectName;
                                    fillData[1]=project.deploydate;
                                    fillData[2]=project.money;
                                    fillData[3]=1;
                                    fillData[4]=statusSwitch(project.status);
                                    fillData[5]="<button type=\"button\" class=\"btn btn-default\">删除订单</button>\n"+
                                        "<button type=\"button\" class=\"btn btn-default\">交易详情</button>\n";
                                    fillData[6]=project.completion*100;
                                    if(fillData[6]<100&&fillData[6]>=0)fillData[7]="正在众筹";

                                    break;
                                case '2':
                                    fillData[0]=project.projectName;
                                    fillData[1]=project.deploydate;
                                    fillData[2]=project.money;
                                    fillData[3]=1;
                                    fillData[4]=statusSwitch(project.status);
                                    fillData[5]="<button type=\"button\" class=\"btn btn-default\">删除订单</button>\n"+
                                        "<button type=\"button\" class=\"btn btn-default\">交易详情</button>\n";
                                    fillData[6]=project.completion*100;
                                    if(fillData[6]<100&&fillData[6]>=0)fillData[7]="正在众筹";
                                    break;
                                case '3':
                                    var btn;
                                    switch (project.fundRequestInfoStatus) {
                                        case 0:btn="<button type=\"button\" class=\"btn btn-default\" disabled='disabled'>资金提取请求中</button>\n";break;
                                        case 1:btn="<button type=\"button\" class=\"btn btn-default\" onclick='application("+project.id+")'>提取资金</button>\n";break;
                                        default:btn= "<button type=\"button\" class=\"btn btn-default\" onclick=''><a href=\"http://localhost:81/project/fund/page/"+project.id+"\">资金提取申请</a></button>\n";break;
                                    }
                                    fillData[0]=project.projectName;
                                    fillData[1]=project.deploydate;
                                    fillData[2]=project.money;
                                    fillData[3]=1;
                                    fillData[4]=statusSwitch(project.status);
                                    fillData[5]="<button type=\"button\" class=\"btn btn-default\">删除订单</button>\n"+
                                       btn;
                                    fillData[6]=project.completion*100;
                                    if(fillData[6]<100&&fillData[6]>=0)fillData[7]="正在众筹";
                                    break;
                                case '4':

                                    fillData[0]=project.project.projectName;
                                    fillData[1]=project.createDate;
                                    fillData[2]=project.fundNum;
                                    fillData[3]=project.member.username;
                                    fillData[4]=project.fundRequestReason;
                                    fillData[5]= "<button type=\"button\" class=\"btn btn-default\" onclick=\"agree("+project.id+","+project.project.id+")\">同意</button>\n"+
                                        "<button type=\"button\" class=\"btn btn-default\" onclick=\"reject("+project.id+","+project.projectId+")\">拒绝</button>\n";
                                    fillData[6]=project.project.completion*100;
                                    if(fillData[6]<100&&fillData[6]>=0)fillData[7]="正在众筹";
                                    if(project.status==1){
                                        fillData[5]= "已同意申请\n";
                                    }
                                    else if(project.status==2)fillData[5]="已拒绝申请\n"
                                    break;
                            }
                            txt+=getTable(fillData,tragger.charAt(tragger.length-1));
                            console.log(status);
                        }
                        $("#listShow").empty().append(txt);

                        //$("#projectShow").html(data.data);
                    }
                }
            );
        }


        window.onload=lode;
    </script>
    <style>
        #footer {
            padding: 15px 0;
            background: #fff;
            border-top: 1px solid #ddd;
            text-align: center;
        }

        #topcontrol {
            color: #fff;
            z-index: 99;
            width: 30px;
            height: 30px;
            font-size: 20px;
            background: #222;
            position: relative;
            right: 14px !important;
            bottom: 11px !important;
            border-radius: 3px !important;
        }

        #topcontrol:after {
            /*top: -2px;*/
            left: 8.5px;
            content: "\f106";
            position: absolute;
            text-align: center;
            font-family: FontAwesome;
        }

        #topcontrol:hover {
            color: #fff;
            background: #18ba9b;
            -webkit-transition: all 0.3s ease-in-out;
            -moz-transition: all 0.3s ease-in-out;
            -o-transition: all 0.3s ease-in-out;
            transition: all 0.3s ease-in-out;
        }

    </style>
    <title>个人中心</title>
</head>
<body id="body_1"  th:sessionid="${session.loginMember.id}">
<div  th:replace="pagehead::pagehead"></div>
<div class="container">
    <div class="row clearfix">
        <div class="col-sm-3 col-md-3 column">
            <div class="row">
                <div class="col-md-12">
                    <div class="thumbnail" style="    border-radius: 0px;">
                        <img src="img/services-box1.jpg" class="img-thumbnail"
                             alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera">
                        <div class="caption" style="text-align:center;">
                            <h3>
                                [[${session.loginMember.username}]]
                            </h3>
                            <span class="label label-danger" style="cursor:pointer;"
                                  onclick="window.location.href='cert.html'">未实名认证</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="list-group">
                <div class="list-group-item" style="cursor:pointer;"
                     onclick="window.location.href='http://localhost:81/auth/member/to/center/page'">
                    资产总览<span class="badge"><i class="glyphicon glyphicon-chevron-right"></i></span>
                </div>
                <div class="list-group-item active">
                    我的众筹<span class="badge"><i class="glyphicon glyphicon-chevron-right"></i></span>
                </div>
            </div>
        </div>
        <div class="col-sm-9 col-md-9 column">
            <ul id="myTab" style="" class="nav nav-pills" role="tablist">
                <li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab" aria-controls="home"
                                                          aria-expanded="true">我的众筹</a></li>
                <li role="presentation"><a href="#profile">众筹资产</a></li>
            </ul>
            <div id="myTabContent" class="tab-content" style="margin-top:10px;">
                <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">

                    <ul id="myTab1" class="nav nav-tabs">
                        <li role="presentation"  class="active" id="tab1_1" onclick="tab1(this.id)" ><a style="cursor:pointer">我支持的</a></li>
                        <li role="presentation"  id="tab1_2" onclick="tab1(this.id)" ><a style="cursor:pointer">我关注的</a></li>
                        <li role="presentation"  id="tab1_3" onclick="tab1(this.id)"><a style="cursor:pointer">我发起的</a></li>
                        <li role="presentation"  id="tab1_4" onclick="tab1(this.id)"><a style="cursor:pointer">资金审核</a></li>
                        <li class=" pull-right">
                            <button id="launchCrowdBtn" type="button" class="btn btn-warning"><a
                                    href="http://localhost:81/project/agree/protocol/page  ">发起众筹</a></button>
                        </li>
                    </ul>
                    <div id="myTab2" class="tab-content" style="margin-top:10px;">
                        <div role="tabpanel" class="tab-pane fade active in" id="support" aria-labelledby="home-tab">
                            <div class="container-fluid">
                                <div class="row clearfix">
                                    <div class="col-md-12 column">
                                        <span class="label label-warning">全部</span> <span class="label"
                                                                                          style="color:#000;">已支付</span>
                                        <span class="label " style="color:#000;">未支付</span>
                                    </div>
                                    <div class="col-md-12 column" style="margin-top:10px;padding:0;">
                                        <table class="table table-bordered" style="text-align:center;" id="projectShow">
                                            <thead>
                                            <tr style="background-color:#ddd;"  id="mainHead">
                                                <td>项目信息</td>
                                                <td width="90">支持日期</td>
                                                <td width="120">支持金额（元）</td>
                                                <td width="80">回报数量</td>
                                                <td width="80">交易状态</td>
                                                <td width="120">操作</td>
                                            </tr>
                                            </thead>
                                            <tbody id="listShow">
                                            <tr  >
                                                <td style="vertical-align:middle;" >
                                                    <div class="thumbnail">
                                                        <div class="caption">
                                                            <h3>
                                                                活性富氢净水直饮机
                                                            </h3>
                                                            <p>
                                                                订单编号:2x002231111
                                                            </p>
                                                            <p>
                                                            <div style="float:left;"><i
                                                                    class="glyphicon glyphicon-screenshot"
                                                                    title="目标金额"></i> 已完成 100%
                                                            </div>
                                                            <div style="float:right;"><i title="截至日期"
                                                                                         class="glyphicon glyphicon-calendar"></i>
                                                                剩余8天
                                                            </div>
                                                            </p>
                                                            <br>
                                                            <div class="progress" style="margin-bottom: 4px;">
                                                                <div class="progress-bar progress-bar-danger"
                                                                     role="progressbar" aria-valuenow="40"
                                                                     aria-valuemin="0" aria-valuemax="100"
                                                                     style="width: 40%">
                                                                    <span>众筹中</span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td style="vertical-align:middle;">2017-05-23 11:31:22</td>
                                                <td style="vertical-align:middle;">1.00<br>(运费：0.00 )</td>
                                                <td style="vertical-align:middle;">1</td>
                                                <td style="vertical-align:middle;">交易关闭</td>
                                                <td style="vertical-align:middle;">
                                                    <div class="btn-group-vertical" role="group"
                                                         aria-label="Vertical button group">
                                                        <button type="button" class="btn btn-default">删除订单</button>
                                                        <button type="button" class="btn btn-default">交易详情</button>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="vertical-align:middle;">
                                                    <div class="thumbnail">
                                                        <div class="caption">
                                                            <h3>
                                                                BAVOSN便携折叠移动电源台灯
                                                            </h3>
                                                            <p>
                                                                订单编号:2x002231111
                                                            </p>
                                                            <p>
                                                            <div style="float:left;"><i
                                                                    class="glyphicon glyphicon-screenshot"
                                                                    title="目标金额"></i> 已完成 100%
                                                            </div>
                                                            <div style="float:right;"><i title="截至日期"
                                                                                         class="glyphicon glyphicon-calendar"></i>
                                                                剩余8天
                                                            </div>
                                                            </p>
                                                            <br>
                                                            <div class="progress" style="margin-bottom: 4px;">
                                                                <div class="progress-bar progress-bar-success"
                                                                     role="progressbar" aria-valuenow="40"
                                                                     aria-valuemin="0" aria-valuemax="100"
                                                                     style="width: 40%">
                                                                    <span>众筹成功</span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td style="vertical-align:middle;">2017-05-23 11:31:22</td>
                                                <td style="vertical-align:middle;">1.00<br>(运费：0.00 )</td>
                                                <td style="vertical-align:middle;">1</td>
                                                <td style="vertical-align:middle;">交易关闭</td>
                                                <td style="vertical-align:middle;">
                                                    <div class="btn-group-vertical" role="group"
                                                         aria-label="Vertical button group">
                                                        <button type="button" class="btn btn-default">删除订单</button>
                                                        <button type="button" class="btn btn-default">交易详情</button>
                                                    </div>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div role="tabpanel" class="tab-pane fade" id="attension" aria-labelledby="attension-tab">
                            <div class="container-fluid">
                                <div class="row clearfix">
                                    <div class="col-md-12 column" style="padding:0;">
                                        <table class="table table-bordered" style="text-align:center;">
                                            <thead>
                                            <tr style="background-color:#ddd;">
                                                <td>项目信息</td>
                                                <td width="120">支持人数</td>
                                                <td width="120">关注人数</td>
                                                <td width="120">操作</td>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr>
                                                <td style="vertical-align:middle;">
                                                    <div class="thumbnail">
                                                        <div class="caption">
                                                            <p>
                                                                BAVOSN便携折叠移动电源台灯
                                                            </p>
                                                            <p>
                                                                <i class="glyphicon glyphicon-jpy"></i> 已筹集 1000.0元
                                                            </p>
                                                            <p>
                                                            <div style="float:left;"><i
                                                                    class="glyphicon glyphicon-screenshot"
                                                                    title="目标金额"></i> 已完成 100%
                                                            </div>
                                                            <div style="float:right;"><i
                                                                    class="glyphicon glyphicon-calendar"></i> 剩余2天
                                                            </div>
                                                            </p>
                                                            <br>
                                                            <div class="progress" style="margin-bottom: 4px;">
                                                                <div class="progress-bar progress-bar-success"
                                                                     role="progressbar" aria-valuenow="40"
                                                                     aria-valuemin="0" aria-valuemax="100"
                                                                     style="width: 40%">
                                                                    <span>众筹中</span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td style="vertical-align:middle;">1</td>
                                                <td style="vertical-align:middle;">1</td>
                                                <td style="vertical-align:middle;">
                                                    <div class="btn-group-vertical" role="group"
                                                         aria-label="Vertical button group">
                                                        <button type="button" class="btn btn-default">取消关注</button>
                                                    </div>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div role="tabpanel" class="tab-pane fade  " id="add" aria-labelledby="add-tab">
                            <div class="container-fluid">
                                <div class="row clearfix">
                                    <div class="col-md-12 column">
                                        <span class="label label-warning">全部</span> <span class="label"
                                                                                          style="color:#000;">众筹中</span>
                                        <span class="label " style="color:#000;">众筹成功</span> <span class="label "
                                                                                                   style="color:#000;">众筹失败</span>
                                    </div>
                                    <div class="col-md-12 column" style="padding:0;margin-top:10px;">
                                        <table class="table table-bordered" style="text-align:center;">
                                            <thead>
                                            <tr style="background-color:#ddd;">
                                                <td>项目信息</td>
                                                <td width="120">募集金额（元）</td>
                                                <td width="80">当前状态</td>
                                                <td width="120">操作</td>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr>
                                                <td style="vertical-align:middle;">
                                                    <div class="thumbnail">
                                                        <div class="caption">
                                                            <p>
                                                                BAVOSN便携折叠移动电源台灯
                                                            </p>
                                                            <p>
                                                            <div style="float:left;"><i
                                                                    class="glyphicon glyphicon-screenshot"
                                                                    title="目标金额"></i> 已完成 100%
                                                            </div>
                                                            <div style="float:right;"><i title="截至日期"
                                                                                         class="glyphicon glyphicon-calendar"></i>
                                                                剩余8天
                                                            </div>
                                                            </p>
                                                            <br>
                                                            <div class="progress" style="margin-bottom: 4px;">
                                                                <div class="progress-bar progress-bar-success"
                                                                     role="progressbar" aria-valuenow="40"
                                                                     aria-valuemin="0" aria-valuemax="100"
                                                                     style="width: 40%">
                                                                    <span>众筹中</span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td style="vertical-align:middle;">1.00<br>(运费：0.00 )</td>
                                                <td style="vertical-align:middle;">草稿</td>
                                                <td style="vertical-align:middle;">
                                                    <div class="btn-group-vertical" role="group"
                                                         aria-label="Vertical button group">
                                                        <button type="button" class="btn btn-default">项目预览</button>
                                                        <button type="button" class="btn btn-default">修改项目</button>
                                                        <button type="button" class="btn btn-default">删除项目</button>
                                                        <button type="button" class="btn btn-default">问题管理</button>
                                                    </div>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div role="tabpanel" class="tab-pane fade" id="profile" aria-labelledby="profile-tab">
                    众筹资产
                </div>
            </div>
        </div>
    </div>
</div>

<div  th:replace="pageend::pageend"></div>

</body>
</html>